package Demo1299.Demo16;

import java.lang.reflect.Method;

public class Demo1 {
    public static void main(String[] args) throws Exception {
        String s = "Demo1299.Demo16.A";
        Class<?> aClass = Class.forName(s);
        Object A = aClass.getDeclaredConstructor().newInstance();
        Method showString = aClass.getDeclaredMethod("showString", String.class);
        showString.invoke(A,s);
    }
}
